package com.glory.wxmemsicpda.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.glory.wxmemsicpda.R
import com.glory.wxmemsicpda.base.DataBindBaseViewHolder
import com.glory.wxmemsicpda.bean.StartLotBean
import com.glory.wxmemsicpda.databinding.AdapterPageInfoBinding

class PageInfoAdapter(data: List<StartLotBean.PRODUCTLISTBean?>?) :
    BaseQuickAdapter<StartLotBean.PRODUCTLISTBean?, DataBindBaseViewHolder>(
        R.layout.adapter_page_info, data as MutableList<StartLotBean.PRODUCTLISTBean?>?
    ) {
    override fun convert(helper: DataBindBaseViewHolder, item: StartLotBean.PRODUCTLISTBean?) {
        val binding: AdapterPageInfoBinding = helper.getDataBinding() as AdapterPageInfoBinding
        binding.productBean = item
        binding.executePendingBindings()
    }
}